package com.ray.test.config;

import java.util.ArrayList;
import java.util.List;

/**
 * @author bo shen
 * @Description: 全局配置
 * @Class: CommonConfig
 * @Package com.ray.test.util
 * @date 2019/12/11 20:14
 * @company <p>杭州传化陆鲸科技有限公司</p>
 * @updateRecord time(修改时间)  author(修改人)   desc(修改内容)
 */
public class CommonConfig {

    /**需要排除的类**/
    private static List<String> excludeCalssName = new ArrayList<String>();

    public static List<String> getExcludeCalssName() {
        return excludeCalssName;
    }

    public static void setExcludeCalssName(String excludeCalssName) {
        CommonConfig.excludeCalssName.add(excludeCalssName);
    }

    /**
     * 是否是排除的类
     * @param name
     * @return
     */
    public static boolean isExclude(String name) {
       return CommonConfig.excludeCalssName.indexOf(name) >=0;
    }
}
